//
//  ZYTabbar_ViewController.m
//  zhongjianProject
//
//  Created by Farben on 2020/4/15.
//  Copyright © 2020 Farben. All rights reserved.
//

#import "ZJTabbarViewController.h"

#import "MainPageViewController.h"
#import "OptionalViewController.h"
#import "PersonalViewController.h"


@interface ZJTabbarViewController ()

@end

@implementation ZJTabbarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    NSLog(@"tabbarinit");
    MainPageViewController *one = [[MainPageViewController alloc]init];
    UINavigationController *oneNav = [[UINavigationController alloc]initWithRootViewController:one];
    oneNav.tabBarItem.selectedImage = [UIImage imageNamed:@"tab_recent_press.png"];
    oneNav.tabBarItem.image = [UIImage imageNamed:@"tab_recent_nor.png"];
    one.title = @"首页";

    OptionalViewController *two = [[OptionalViewController alloc]init];
    UINavigationController *twoNav = [[UINavigationController alloc]initWithRootViewController:two];
    twoNav.tabBarItem.selectedImage = [UIImage imageNamed:@"tab_buddy_press.png"];
    twoNav.tabBarItem.image = [UIImage imageNamed:@"tab_buddy_nor.png"];
    two.title = @"自选";
    
    PersonalViewController *three = [[PersonalViewController alloc]init];
    UINavigationController *threeNav = [[UINavigationController alloc]initWithRootViewController:three];
    three.tabBarItem.selectedImage = [UIImage imageNamed:@"tab_qworld_press.png"];
    three.tabBarItem.image = [UIImage imageNamed:@"tab_qworld_nor.png"];
    three.title = @"我的";
    
    self.viewControllers =@[oneNav,twoNav,threeNav];

    
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
